-
Notifications
You must be signed in to change notification settings - Fork 1
feat: stop spinner on process exit #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Stops the spinner when `SIGTERM` or `SIGINT` is received.
Looking at other implementations aren't there more signals we need to use? See https://github.com/tapjs/signal-exit/blob/main/src/signals.ts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I'm happy to not listen for any other signals, SIGHUP
for example will only be called once the terminal is closed so it's pointless to respond to it. I'm not sure why exit libraries listen to so many events tbh.
all should be sorted now 👍 on on |
Stops the spinner when
SIGTERM
orSIGINT
is received.cc @PondWader